package com.devilvan.betrice.brand.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devilvan.betrice.common.BasePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serial;
import java.io.Serializable;

/**
* @author Evad.Wu
* @Description 中国品牌网 映射
* @date 2022-09-16
*/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "CN_BRAND")

@Entity
@Table(name = "CN_BRAND")
@DynamicInsert
@EntityListeners(AuditingEntityListener.class)
@Schema(description = "中国品牌网 映射")
public class CnBrandPo extends BasePo implements Serializable {
    @Serial
    private static final long serialVersionUID = -1918007323976529249L;
    @Schema(description = "行业URL")
    @TableField(value = "INDUSTRY_URL")
    @Column(name = "INDUSTRY_URL", columnDefinition = "VARCHAR(128) NOT NULL COMMENT '行业URL'")
    private String industryUrl;
    @Schema(description = "行业名称")
    @TableField(value = "INDUSTRY_NAME")
    @Column(name = "INDUSTRY_NAME", columnDefinition = "VARCHAR(16) NOT NULL COMMENT '行业名称'")
    private String industryName;
}
